<?php

namespace app\api\controller\club;

use app\common\controller\ClubApi;

/**
 * 俱乐部小程序接口
 */
class Other extends ClubApi
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * @api {get, post} /api/club/other/options 获取下拉选项
     * @apiGroup 其他
     *
     * @apiParam {String} name 名称
     */
    public function profile($name='')
    {
        try{
            $data  = [];
            return $this->success('成功', $data);
        } catch (\think\exception\HttpResponseException $e){
            throw $e;
        } catch (\Exception $e) {
            return $this->error($e->getMessage());
        }
    }
    
    /**
     * @api {get, post} /api/club/other/config 系统配置
     * @apiGroup 其他
     *
     */
    public function config()
    {
        try{
            $data  = [];
            $data['pay_note'] = '微信支付正在申请中，请扫二维码完成支付';
            $data['pay_qr_url'] = 'https://clubapi.zhushou.net/uploads/20240706/e401308bf613915659ef59a4da359a63.jpg';
            $data['contact_us_img'] = 'https://clubapi.zhushou.net/uploads/20240706/e86d3841984330834ce1c876c1941ced.jpg';
            $data['add_us_img'] = 'https://clubapi.zhushou.net/uploads/20240706/7e16e0281c9fdbaed9e4e0183adb9f9e.jpg';
            $data['add_us_text'] = 'littlebear1119';
            return $this->success('成功', $data);
        } catch (\think\exception\HttpResponseException $e){
            throw $e;
        } catch (\Exception $e) {
            return $this->error($e->getMessage());
        }
    }
    
}
